package com.learn.feign_service;

import com.learn.controller.dto.AddNoticeReq;
import com.learn.controller.dto.NoticeType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "ZUUL")
public interface ZuulFeignService {
    @PostMapping("/zuul/prefix/dept/dept/addDept")
    public String addDept(@RequestParam("name") String name);
    
    @PostMapping("/zuul/prefix/dept/dept/findOneDept")
    public String findOneDept(@RequestParam("id") Integer id);
    
    @PostMapping("/zuul/prefix/dept/dept/findAllDept")
    public String findAllDept();
    
    @PostMapping("/zuul/prefix/notice/notice/addNotice")
    public String addDept(@RequestBody AddNoticeReq notice);
    
    @PostMapping("/zuul/prefix/notice/notice/listNoticeByType")
    public String findOneDept(@RequestParam("noticeType") NoticeType noticeType);
    
    @PostMapping("/zuul/prefix/notice/notice/findAllNotice")
    public String findAllNotice();
}
